package com.sunl.mall.common.request;

import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CommonMultiPrimaryKeyRequest<T> extends CommonRequest {
    private static final long serialVersionUID = 7953105286146212685L;
    @NotNull(message = "ID集合不能为空")
    private List<T> ids;

    public List<T> getIds() {
        return this.ids;
    }

    public void setIds(List<T> ids) {
        this.ids = ids;
    }
}
